﻿using System;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Eacademy.Domain.Entities;
using Eacademy.Library.Validations;
using System.Linq.Expressions;

namespace Eacademy.Domain.Models
{

    [MetadataType(typeof(UserMetaData))]
    public partial class User : UserBase
    {
        public string Identification { get; set; }

        public User()
        {
            LastUserActivity = DateTime.Now;
            UserLoginAttempts = 0;
        }

        public string UserType { get; set; }

        // Not used except as a source of metadata
        public class UserMetaData
        {

        }

    }
}